import http from "@/utils/http";

// 树形列表
export const merchantsMenuTreeList = ()=> http.get('/adminapi/dubbo/merchants/menu/tree/list')

// 详情
export const merchantsMenuDetail = (id)=> http.get(`/adminapi/dubbo/merchants/menu/detail/${id}`)

// 添加
export const merchantsMenuAdd = (data)=> http.post('/adminapi/dubbo/merchants/menu/add', data)

// 编辑
export const merchantsMenuEdit = (data)=> http.post('/adminapi/dubbo/merchants/menu/edit', data)

// 删除
export const merchantsMenuDelete = (id)=> http.delete(`/adminapi/dubbo/merchants/menu/delete/${id}`)
